package com.example.springbootdemo.property;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = "classpath:/application.properties",
        encoding = "UTF-8")
public class MyPropertyMainConfig {

    @Bean
    public Person myPerson() {
        return new Person();
    }

}
